import os

import pytest

from datetime import datetime

time=datetime.now().strftime('%Y%m%d %H%M%S')

from Log.log import sed_log,sed



if __name__ == '__main__':
    sed_log(time)
    pytest.main(['../case/test_login.py','-s',f'--alluredir=allure-re'])

    os.system(f'allure generate  allure-re -o allure-report')


sed([f'./{time}.log',r'D:\gaowu\day17\pytest1\run\allure-report\index.html'])
